<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>航班动态</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body class="dongtaiBodyBg bodyFontSize">
<div class="container MainBgClor">
    <div class="row dongtaiChooseBox">
        <div class="col-sm-6 col-xs-6 col-lg-6 text-center dongtaiByNo"><span class="FontSize12">按航班号</span></div>
        <div class="col-sm-6 col-xs-6 col-lg-6 text-center dongtaiByCity"><span class="FontSize12">按城市名</span></div>
    </div>
    <div class="row dongtaiCityBox">
        <div class="col-sm-5 col-xs-5 col-lg-5"><span class="FontSize18">杭州</span></div>
        <div class="col-sm-2 col-xs-2 col-lg-2"><img src="img/AppImg01.png" class="img-responsive center-block Img_Mid"/></div>
        <div class="col-sm-5 col-xs-5 col-lg-5 text-right"><span class="FontSize18">北京</span></div>
    </div>
    <div class="row dongtaiNoBox">
        <div class="col-sm-12 col-xs-12 col-lg-12"><span class="FontSize18">GJ</span></div>
    </div>
    <div class="row dongtaiTimeBox">
        <div class="col-sm-12 col-xs-12 col-lg-12"><span class="FontSize18">2017-10-30&nbsp;&nbsp;</span><span class="FontSize12 WeekDaySty">周三</span></div>
    </div>
</div>
<div class="container padTop30">
    <div>
        <button class="btn btn-block btn-circle btn-my FontSize10" id="test1"><span class="FontSize16">查询</span></button>
    </div>
</div>
<script>
    $(function () {
        $("#test1").click(function () {
            var postdata = {
                Type: "Function",
                Content: {data: 1},
                To: {
                    Target: "main",
                    Func: "HandleDemo",
                    Serial: ""
                },
                From: {
                    Source: "",
                    Func: "",
                    Serial: ""
                }
            };

            window.parent.postMessage(postdata, '*');
        })
    });
    window.addEventListener('message', function (e) {
        if (e.source != window.parent) return;
        alert(e.data);
    }, false);
</script>
</body>
</html>
